<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/commons/jsp/taglibs.jsp"%>
<style>
	.lg_tag{
		font-size: 14px;
    	font-weight: bold;
	}
	.fs_box{
		margin: 10px 10px;
    	padding: 10px 10px;
	}
	.input_tag{
		margin: 0px 5px 0px 10px;
	}
	.span_box{
		width: 100px;
	}
	.fs_box_ul li{
		width: 100px;
		margin: 2px 5px;
		float:left;
	}
	.clear{
		clear: both;
	}
</style>
<div style="padding:20px 20px;">
	<form>
  		<fieldset class="fs_box">
    		<legend class="lg_tag">用户角色</legend>
    		<ul class="fs_box_ul">
	    		<c:forEach items="${roleList}" var="role">
					<li>
					<c:choose>
						<c:when test="${fn:contains(userRoleData,role.id)}">
							<input class="input_tag" name="userRole" type="checkbox" value="${role.id }" checked="checked"/>${role.name }
						</c:when>
						<c:otherwise>
							<input class="input_tag" name="userRole" type="checkbox" value="${role.id }" />${role.name }
						</c:otherwise>
					</c:choose>
					</li>
				</c:forEach>
    		</ul>
  		</fieldset>
  		<!--<c:if test="${not empty rightList}">
     	<fieldset class="fs_box">
    		<legend class="lg_tag">权限设置</legend>
    		<ul class="fs_box_ul">
    			<c:forEach items="${rightList}" var="r">
					<li>
						<c:choose>
						<c:when test="${fn:contains(userRightData,r.value)}">
							<input class="input_tag" name="rightSet" type="checkbox" value="${r.value }" checked="checked"/>${r.name }
						</c:when>
						<c:otherwise>
							<input class="input_tag" name="rightSet" type="checkbox" value="${r.value }"/>${r.name }
						</c:otherwise>
						</c:choose>
					</li>
				</c:forEach>
    		</ul>
  		</fieldset>
  		</c:if>
  		<c:if test="${not empty goodsTypeList}">
  		<fieldset class="fs_box">
    		<legend class="lg_tag">商品审核设置</legend>
    		<ul class="fs_box_ul">
    			<c:forEach items="${goodsTypeList}" var="g">
    				<li>
    				<c:choose>
						<c:when test="${fn:contains(userGoodsTypeData,g.id)}">
							<input class="input_tag" name="goodsCheckSet" type="checkbox" value="${g.id }" checked="checked"/>${g.name }
						</c:when>
						<c:otherwise>
							<input class="input_tag" name="goodsCheckSet" type="checkbox" value="${g.id }"/>${g.name }
						</c:otherwise>
						</c:choose>
    				</li>
				</c:forEach>
    		</ul>
  		</fieldset>
  		</c:if> -->
	</form>
</div>